#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;

namespace GameDesigner
{
    public class StateMachineCodeWindow : EditorWindow
    {
        private string codeText;

        public static void ShowWindow(string codeText)
        {
            GetWindow<StateMachineCodeWindow>("状态机代码生成器", true).codeText = codeText;
        }

        private void OnGUI()
        {
            GUILayout.TextArea(codeText);
        }
    }
}
#endif